package com.my.xq.domain.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;

import com.sskj.core.entity.BaseEntity;

@Entity
@Table(name = "xq_voteresult")
public class VoteResult extends BaseEntity  {
	
	/**
	 * 投票结果表
	 */
	private static final long serialVersionUID = 1L;
	
	@Column(length = 40)
	private String optionId;	//对应的选项id
	
	@Column(length = 40)
	private String courtId;	//对应的小区id
	
	@Column(length = 40)
	private String proprietorId;	//对应的业主id
	
	@Column
	private int result;	//投票结果 1赞成 2反对
	
	@Column
	private int ballot;	//算作的票数 以投票所在小区的业主在这个小区内拥有几个门牌号为准
	
	@Transient
	private String planId;
	
	@Transient
	private String courtName;
	
	@Transient
	private String proprietorName;
	
	@Override
	public String toString() {
		return "VoteResult [optionId=" + optionId + ", proprietorId=" + proprietorId + ", result=" + result
				+ ", ballot=" + ballot + "]";
	}

	public String getOptionId() {
		return optionId;
	}

	public void setOptionId(String optionId) {
		this.optionId = optionId;
	}

	public String getProprietorId() {
		return proprietorId;
	}

	public void setProprietorId(String proprietorId) {
		this.proprietorId = proprietorId;
	}

	public int getResult() {
		return result;
	}

	public void setResult(int result) {
		this.result = result;
	}

	public int getBallot() {
		return ballot;
	}

	public void setBallot(int ballot) {
		this.ballot = ballot;
	}

	public String getCourtId() {
		return courtId;
	}

	public void setCourtId(String courtId) {
		this.courtId = courtId;
	}

	public String getPlanId() {
		return planId;
	}

	public void setPlanId(String planId) {
		this.planId = planId;
	}

	public String getCourtName() {
		return courtName;
	}

	public void setCourtName(String courtName) {
		this.courtName = courtName;
	}

	public String getProprietorName() {
		return proprietorName;
	}

	public void setProprietorName(String proprietorName) {
		this.proprietorName = proprietorName;
	}
}
